package org.bocs.service.impl;

import jakarta.annotation.Resource;
import org.bocs.dao.CategoryDao;
import org.bocs.entity.CategoryVO;
import org.bocs.service.HomeService;
import org.bocs.untils.ResultVo;
import org.bocs.untils.StateCode;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomeServiceImpl implements HomeService {

    @Resource
    private CategoryDao categoryDao;

    @Override
    public ResultVo getCategoryList(int id) {
        List<CategoryVO> categoryVOS = categoryDao.selectAllCategories(0);
        return new ResultVo(StateCode.SUCCESS, "", categoryVOS);
    }
}
